package com.daon.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @Author 1daon
 * @EMAIL 532418116@qq.com
 * @Version 创建时间：2019/2/27 9:22 AM
 * @Modified By
 */
@Getter
@Setter
@ToString
public class SysNodeParam {

    private Integer nodeId;
    private String nodeUrl = "";
    private Integer nodePid = 0;
    private Integer nodeTopPid = 0;
    private String nodeIcon = "";
    private String nodeDesc = "";

    @NotBlank(message="节点名称不能为空")
    @Length(max=50, min=1, message = "节点名称需要1到50个字之间")
    private String nodename;
    @NotNull(message = "排序不能为空")
    private Integer nodeSort;
    @NotNull(message = "节点类型不能为空")
    private Integer nodetype;
}
